#! /usr/bin/env bash
# Build the target and make a .elf file for simulation.

#options to be passed to make when building the 
AVMAKEOPTS="micaz debug"

echo "Building the target..."
cd src
make $AVMAKEOPTS
cd ..

#rename the main.exe file to main.elf - this seems to matter.
mv src/build/micaz/main.exe src/build/micaz/main.elf
